<template>
  <div class="header">
    <div>
      <div class="title">通用管理系统</div>
      <div class="user">{{ name }}</div>
    </div>
  </div>
</template>
<script>
import { getToken } from "@/utils/setToken";
export default {
  data() {
    return {
      name: "",
    };
  },
  created() {
    this.name = getToken("username");
  },
};
</script>
<style scoped lang="less">
.header{
    width:100%;
    background: #2578b5;
    height:60px;
    div{
        display: flex;
        justify-content: space-between;
        line-height: 60px;
        .title{
            font-size: 24px;
            padding-left: 30px;
        }
        .user{
          padding-right: 20px;
        }
    }
}
</style>